package com.ruoyi.codebase.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 码库对象 code_base
 *
 * @author ruoyi
 * @date 2024-01-14
 */
@TableName("code_base")
public class CodeBase implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 会员码 */
    @Excel(name = "会员码")
    private String code;

    /** 分销商 */
    @Excel(name = "分销商")
    private String distributor;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 地区详细信息 */
    @Excel(name = "地区详细信息")
    private String detial;

    /** 下发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下发时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setDistributor(String distributor)
    {
        this.distributor = distributor;
    }

    public String getDistributor()
    {
        return distributor;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setDetial(String detial)
    {
        this.detial = detial;
    }

    public String getDetial()
    {
        return detial;
    }
    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime()
    {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("codebase", getCode())
            .append("distributor", getDistributor())
            .append("mobile", getMobile())
            .append("detial", getDetial())
            .append("sendTime", getSendTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
